
import sys

def is_in_exe():
	try:
		testing = sys.frozen
		in_exe = True
		return True
	except AttributeError:
		return False

def get_path(path):
	"""
	Determines the correct path for our resources.
	"""
	if is_in_exe():
		return sys.prefix + '\\' + path
	else:
		return path
